Tests for SerializeWithFormat, ToUnformattedXml