Fixes test_serialize_compatibility