Adding test coverage for log_elements_of_list.