Added new serialization/deserialization test.