Allow better unit testing on authenticator