Testing exclusion of nodes