add model constraint test