Validations and tests