add tests for exceptions