Fix redirect unit test