improve data recording in test harness