Unit test fixes
minor #11952 Unit test fixes (fejese)

This PR was squashed before being merged into the 2.5 branch (closes #11952).

Discussion
----------

Unit test fixes

[Validator][Debug] Fixing unit tests

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

3c11fa5 Unit test fixes