resolve_encounter_ids test works