test for branch management