write tree_node_spec.rb