Fixed bug with the tree item icon of the files-tree
Added test for the last bugfix