Add tests for freeing config when shutting down.
Add docstrings.
Fix debug doc string.
Move assertPrinted and assertNotPrinted to test case parent class.
Add test for debug buffer.