Adding unit-test for Validator