Fix the test failure for mongodb