stronger test for redirect