Test that the redirect is as expected