add validation for branching in buildtest