fix tests for csv writer