add test case for serialization in parent.