Add UT for listTrees method