Fix shipment.state check in shipment_spec

Complete with comment about why it's calculated to be that value