test: nodeHasLabel() does not perform instance check for Text #123