Add a testing macro assert_throw.