Specs and code for removing nodes from tree