Added test on writeDir
Merge pull request #119 from floatdrop/100-percent-coverage

Added test on writeDir