in runnable test, comparing to undefined error's message rather than a literal