added test helpers and MongoDBX509AuthenticatorTests.
added more thorough authentication tests.