avoid using util.Joi, util.assert
move all mongodb logic into testUtil