Add error-path tests for _order_dms