Checking Exceptions

Testing that exceptions are correctly thrown.

Checking exceptions