add ErrorException for @test_throws