Add test for model validations in setModels