Avoid another my_dict.iteritems() in tests for Py3 compatibility