[Validator] Add test for bug #12158