added tests for MongoCredential.