add debug stacktrace for tree menu problems
remove unused code
cleanup junit test code