split pipeline test into 2 functions, one send, one receive