TEST: Update the serialization/deserialization test with legacy PEM encryption