Fixed MongoDB persistence tests.