added RPCProxy and MockRPCProxy for testing