test for redirect