Restored serialization test