Test rpc GenericError