test for correctly returned node type names