test for auto branch switching