Add tests for mongo service