Added Mongo configuration and unit tests.