Added test that shows round tripping complex state.