test for validations in ORM