Add test for iterating over a hash.