hotfix for #7006 test case (error messages were changed during merge)