added test for validations