testing validations for messages