Validations and test