Add test for an issue with dict_of_key_value_pairs in Python < 2.7