Added a test function to add code to tree, Not Final