Handling the File Writer for CSVFileWriter test cases