Added more test to iterator version