Get rid of redundant error messages and make test_echomesh.py a little more general.