fix mongodb test case