fix test iterator bug