test for correct call of LogExecCmd