tester.hpp: add assert_throws support