write testing output to csv