Add outbailment sort and test
Fix test by changing the deterministic hardcoded ntxid
Model the outBailmentID explicitly
Fix after Guilhermes review