Added tests for logging + failures