Finished unittests for new mongodb.