the function of tree_test works right now