XmlSerializer tests.