Validation messages classes and test