[CLEANUP] Let expected exceptions test for code, not text