process data to csv from test data