Added type-hints to testIterators. Also added another test case for it.