testing unit validations