Add test for refs/head BranchSpec