Added tests for MongoDb service