Fixed mistake in tests from commit 2039908. Refs #19816.
Merge pull request #2495 from loic/ticket19816

Fixed mistake in tests from commit 2039908. Refs #19816.