Testing List::for_each()