make node type tests stricter