test get_leaf_item