convert Branch test to accumulator style