test: group by "with index" case