added support for testing error messages written to stderr
0.2.3