fix mongo test case