test: Adapt test scripts to multi-sim scenarios

Some tests scripts were not ready to handle situations with more than
one modem present. This changes fixes some of the scripts, including
those used in the test plan.