fix redirect URL unit test