test branching scenario