t7111: fix bad HEAD in tests with unmerged entries