Fix redirect test cases