Actually can't see the big difference in functionality here, apart from the xpath being slightly faster.

Also why do you think this test is unnecessary? The one that was testing that urls are expanded correctly was missing the case of href-less anchors, so I think that a new test that previously was failing and is now passing is quite valuable.