fixes bug in MongoTest.java