test iterator adapter