Added tests around logging