Fixed memory leak on sim schedule destroy.
Added pare-tree method for cleaning off dangling nodes post-repopulation of the tree.
Fixed error in clear-tree method.
Update to lib_tests.