Move error code tests to SPI
Add additional tests for StandardErrorCode
Add validation to ErrorCode