added tests for `getTreeFiles` method