work on a test_is_node_valid() method