updated the serialization test case