added test for redirect bug