added test for logging exception