Fix login redirection test