test fixes for error messages