Test the redirect functionality