test for redirecting