Added tests for logging