Added tests (and fixed some bugs) for logging and config classes