fixed RPC unit test