Fix test expectations on error message