fix tests for followRedirect