Cannot check for string equality in test.

Emacs 24.3 prints a message, which messes up the test. We just make sure
that the real message is included.