Add test for reduceAdd behavior when building groups