fixed tests for mongoDB