Test for AuthenticationBackendImpl