improved error logging in the test harness