Add test_gen_tree. Doesn't really test much.