The Create a Custom Policy article has the most up-to-date information on this topic.
DubBot now offers validation of custom policy (check) rules.
In Settings > Policies
In the Rules area, in the Search By dropdown, select XPath and next to the Rule input box you will now see an error message if your XPath expression is invalid.