Added new unit tests for txt and xml formatters and XElement.