Added test for the constraint validator.