Fix issue with MongoConfigReadPreferenceTest