Fixes groupByElementSet unit tests.