fix constraints tests