Created unit test for mongo repo