Add serialization test