Added test cases for exception error logging