fix strange branching in preorder test pattern