finished insert_tree() with testing