test exporting CSV file