fix tests for redirect stuff