tests for leading pipe alternation