Minor refactoring in TestXmlDisplayer.