This commit provides the tests for this issue but the actual problem was solved by the ValidationError refactor in f34cfec0 and ee77d4b2. Refs #20199.