Add tests for ::branches()