Test for exceptions with ExpectedException
Unrelated: remove unused before/after
Merge pull request #161 from hansjoachim/exceptionTests

Uses ExpectedException to test for exceptions