EntityIterator including unit test