Fixed tests regarding system error messages under Windows.