added unit tests for query parser