rpc test with calculation