Imporved RoundtripTest for metadata. A bit change to MetadataComparator.