nodeType property error when using selectors like: $(widget)

When I updated my project to 1.4.3 version I noticed $ method complains about the nodeType property when doing $(widget).
Use assertTrue assertFalse