added patch entity test