fix `@test_throw` warnings