fix polling behavior in the test harness