Add tests for ComponentGroup iteration.