refatored tests of validator
tests for validationMessages.showMessage()