add test
add try - finally block to delete file and close csvWriter