Fix expected error string in unit test

Fix expected error string in unit test to reflect the improved error message in PR #9901.

My bad!  Forgot to include this update in the original PR.