add test for xpath queries with parenthesized expressions
fix recognition of xpath for parenthesized expression