Fixed mongo tests.