unit test question thread. remove unnecessary tree functions.