Validator unit tests