Fixed test for EncounterRepository