Add test for redirection