added testing for validations