Documentation for test_throws exception type

#6727 introduced a parameter for an exception type. This updates the documentation for @test_throws