tests: simplify exceptions