adding unit tests for mongoDB