Validations with tests