Add tests for allow_grouping_escape_query