test(tap): update tests so nodeType exists