Add tests for mongo.