Add test case for generating csv