added simple test case for serialization