Pulling out unecessary code for treetable.
Pulling out a broken test I need help to fix. Will discuss with @carols10cents