unit test AuthManager::login()