adding unittest for mongoConnector