test sending message via RPC