Fix unstability of CommandExecutorTest