Fix tests for redirection.