test that line item raises an exception if min is not less than equal to max