fixing broken tests in tree_spec. The tests were broken, not the lib