Test enumerate by iteration