simplify getIterator
Add iterator test
test array access interface