updated test cases to serialization