Added more tests and updated code for the FileExporter class.