testing RPCHandler