Resolves: BZ # 31205 Adapt test cases in test-grouping_iterator.c
The iterator allows grouping while scanning forward through the digits. This enables emitting digits as they are processed. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>