Improve ulils.areAllDOMNodes

Also added tests