Add example/test for double group_by