improved Xml::isValid + updated tests