Changes related to old unit tests

Here I basically rewrote the code that runs unit tests for old unit test logfiles as part of the regressions suite. It's not all done, but the bulk of it is. Some more exceptions for the old unit tests are needed, and some things need to be moved to the unit tests, I think.

But I am pushing what I have for now.