juju-run: improving ParseRemoteUnit checks and tests