tree generation test (unfinished)