Permissions module: test permissions for unregistered user

It is obvious next step after PR #761. Now results from this PR can be tested.

Changes make possible to test permissions for unregistered users.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | no
| License       | MIT
| Doc PR        | no