Add unit testing for ConstraintValidator #127

Replaces #202