Finished tests for getItemFromTree