Categorize tests into cases.
Change logging toggle mechanism.

Changing log levels is far more useful than toggling logging on and off. It also
fits expectations better, given the way logging often works.
Test log levels more thoroughly.
Create mikmemapi to wrap the system memory api.