Added a test for xml serialization.