Fixes query code in FoodRepository, and updates unit tests to match.