use six.iteritems, fixed test_search_fields