fix test_throws calls