ForEachCommand with first tests