test pipe datastructure