query parser wrapper; tests