set and increment ending_duration properly
controller test for incrementing ending duration passing
Merge pull request #32 from LightningLord/debugging_ending_duratoin

Debugging ending duration