Fix bug in Devise redirection test.