switched branch testing