Use MalformedCSVError instead of IllegalFormatError in flexible_criterion_test