Change from each to each_value on hash to avoid unused variable warning

Change from each to each_value on hash to avoid unused variable warning, since we are not using k in test