fix mongo_conv bug & and tests