Remove unnecessary invert_dict import from tests