Why am I getting a redirect error on the test that is failing?