split out unit test in buf pipe example