Group error handling cases in spec