testing array iterators