test pipe code