Added unit test for branch deletion