[Validator] Fix tests.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Both tests were introduced in #11498, but #11485 changed the approach to testing the validator and did not include these tests.

ping @webmozart