tests of exceptions raised