TestPermission create a user with the following name and group:
will be run as the specified user, but it seems to be run as me who run the test.
Running as the specified user would disallow setOwner, which requires superuser privilege. This is not happening.
Creating this jira for some investigation to understand whether it's indeed an issue.