Move function getNextOccurrence to EventPeriod, add test for function hasOccurrenceOnDate
Add tests to EventPeriod
Fix #25
Fix #29 for EventEditactivity
da refactoring, fix bugs