Catching and reporting exceptions thrown in unit tests