tests and methods of XML class updated