simple roundtripping. Sorting of keys necessitated slight changes to inputs
scripts for roundtripping