Added specs for Error and Result.