Update tests where namedItem matches multiple nodes to reflect spec change