fix mongo tests.