Adding some Tests for the Tree and TreeGrower. Plus some more refactoring.