fix rpc test, add rpc samples