fix test invoking commands