[Validator] Backported constraint validator tests from 2.5