tests, jshint, added regexp to node.has()