Follow-on fix: if tests throw an exception, don't throw another by calling an undefined variable.