Add specs enforcing error handling