Fix unittest with icalendar >= 3.6

Component.set was removed in icalendar 3.6