Fix unit test: check only fact of exception, not text