Fix order of arguments path and query in xsearch test cases