decouple serialization and deserialization tests