Fix some broken tests on FF, fixed xpaths for related items to use the nodes attribute instead of text (which would break for localized builds).