Add a test for NextIterator.