Unit testing validations