Tests for RPC.