save_code_now: add tests for (and fix) multiple-origin CLI
We only ever tested the single-origin case, and the CLI endpoint itself was never adapted to work for multiple origins. Ensure that tests properly support that case.
We only ever tested the single-origin case, and the CLI endpoint itself was never adapted to work for multiple origins. Ensure that tests properly support that case.