Fail if no exception is thrown
Merge pull request #5630 from ctomc/testsuite-fix

Fail if no exception is thrown