Added test for nonduplicate grouping.