add test for exceptions