write tests for IteratorAggregate