wrote tests for json/csv