implemented has_node() and corresponding unit tests.