Fixed unit test for auth login