Fix 0.2 incompatibility with @test_throws