formatting for writing test data