fix test with the new definition of exceptions