fix linearconstraint unit test