Added unit test for login failure