Add test for iterators