added test for redirect