Testing redirection flow