Ensuring error will be thrown and catched when category not found.