added test for pipe-cutoff behavior