Add assert.throws

Closes #57.
Add an example of using assert.throws