Added test for the `max_p` branch in `optimize_order`
Added test for the `max_p` branch in `optimize_order`

scot-dev/scot,mbillingr/SCoT,scot-dev/scot,cle1109/scot,cle1109/scot,mbillingr/SCoT,cbrnr/scot,cbrnr/scot