simplifying testRunLocalCommand