test for validations