Add tests for get all branches