Update tests to use assert.throws
Update the docs