integration test for get branches