Fix test suite to not fail when XML::Twig is not installed. Closes: #707436