Add thrift dependency to test-network