Don't rely on the error template in tests.