Test that we appropriately escape XPath filters