modified serialization test