Add query parser test in command