Mock the MongoConnection for modulestore tests