fix iterator in testsuite helpers
Merge pull request #743 from ThomasWaldmann/sprint-branch

fix iterator in testsuite helpers