make it work with a null value
add some tests

- use the new AbstractConstraintValidatorTest for testing
- remove testing for dead versions (<2.3)