test hash iterating