Serialize and diff instead of using test/compare.lua