Tests for make_list_of_pairs