Updated testing documentation to use doctest and specific errror for test_throws