Updated test for removeAllergies and removePreferences