Add unit test for ExceptionManager.