[WIP] add tests for mongo.