Finished wrapping unit tests to hide logging

In most cases, involved putting unit tests into a scratchdir. Although it
induces some extra directory creations and deletions, for the most part the gain
in uniformity is worth it.