Fix the MongoTestCase class

Simple fix to make the MongoTestCase class work.