Fix expected error message in a test.

The change is a result of the char/string parsing refactor.