Tests for fix_dict