Fixing test that checks for an error string.