fixes next_occurrences, now it uses repeat_ends_on and start_datetime for repeating events.
Adds a test for pending_scrums