Fix constraints test