test(privilege): test authorization

SD-1069 SD-1091
Merge pull request #411 from petrjasek/master

test(privilege): test authorization