Add more test cases for filetuils to increase branch coverage
Almost all branches are covered in fileutils now.