Fixed tests for mongo.