Output to csv testing