Added tests for NodeList and hasAttr changes