ticket:5 Added tests for authorization