fixing bug in regression test harness