update test case for serialization