Make test check for error_code.