ResultGrouping: Test is green, but code still needs to be refactored.