Added tests for DefaultTree.
Added toString to AbstractTree.
Fixed problem in depth first search.