Test for keysIterator.