add specs for Validator