Fixed testLegacySerialization failure