Added a test to login