testing iterator