problem.cc: check exceptions in test.