Kb hs admin and comments

Wrote a lot of new tests for authentication/authorization and fixed other issues from comments
Extra blank line detected.