Fix unit tests for redirect() change