Check link text in search result tests

rather than the href which recently changed