Correct node-inclusion test