fixed a bug in the constraints test