Added test case for custom iterators