Fix broken error handling spec