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

just a slight test improvement I suggested at #1410.