thrift RPC framework test code