Fix type of error for @test_throws. Fixes #49.