Test more complicated serialization