Test internal JSONRPC errors