optimize HashMap internals with iterators
hashmap: update tests