Add core.UnitTest.createXmlDocument, to reduce duplicated code
Merge pull request #544 from kossebau/reduceDuplicationOfXMLTreeGenerationInTests

Add core.UnitTest.createXmlDocument, to reduce duplicated code