= can: fix tests and extract ErrorInfo from exception if provided, refs #529