Convert src/test/exception.cxx to new testing framework