Tree.Node: add methods, fix bugs, create tests