Kb hs admin and comments

Wrote a lot of new tests for authentication/authorization and fixed other issues from comments
`%Q`-literals should be delimited by `(` and `)`