Added tests for authorization