distinguish two wrapped grouping mode and add comments in the test cases