Added test for ValidatorException