improve testsuite exception/loop handling
improve testsuite exception/loop handling

There's not much to do about infinite loops, but I put in a
comment saying what change is needed if you want to
stop in a loop with a debugger.

idupree/hilarious-text-editor,idupree/hilarious-text-editor,idupree/hilarious-text-editor