make unit test for login