test for branching