Add branch instructions to random test