Added test for the up to half units constraint.