(de)serialization
test for 2-pair comparison bug