add test case for serialization in child.