Improve readability of test on exception