updating the mongo service and some tests