update trim_dict test