juju-run: updated InferRemoteUnit with tests