Fix tests for CSV export