Add test for repeatable iterator