Tester script for writing csv files