added unit test for authenticator factory