File Tree: fix drag and drop on non tree elements. Prepare for unit testing