Added tests for checking on all logging level changes and fixed some
logging bugs.