Make all tests work with MongoDB backend