Completed unit tests for the FileWriter