Testing the login factory