Added comprehensive test cases for TestQueryParser