created a generic TreePanel class and some tests.