Added tests to make sure error messages aren't clobbered.