Add Unit Test For Logging Exeptions