Added tests for the GroupedSubjectIterator

This will avoid regressions for the fix done in #430.

It also adds an ArraySubjectIterator in Testwork for cases where the
subjects cannot be lazy-loaded. However, a lazy iterator should be
preferred whenever possible to limit memory usage.
Merge pull request #435 from stof/test_iterator

Added tests for the GroupedSubjectIterator