address errors found by Kelly via test/iterators.erl ... and add test there for another case that failed