Fixed #19994 -- Typo.

Thanks akshar for the report.
Used more precise test assertions.