Add test for query parser