Move tests of XPath into the proper module