testDir deletion by flattenAndPutDataInFolder fixed