add thrift test