[ValidatorBundle] Added a unit test for issue #7629

I was unable to reproduce the problem; here's the unit test for this scenario.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7629
| License       | MIT
| Doc PR        | -