Fixed authorization tests