refactory class XMLTest