add thrift test.