Adding basic tests for exceptions