use Test:XPath instead of Test::Xpath
replace some File::Spec with Path::Class