Fix iteration of iterators in older Firefox.
Cleanup tests.