IO fixes for test harness