Add some unit tests for the IndexIteratorTrigger.
Integrate comments from Anthony.