adding test for new methods of CollectorIterator