fixed branching test