Adding unit test for successful API login