Add test to check for authorization redirect