end-to-end test for csv