Add redirection for tests