Fix deprecated moment.js date parsing

https://github.com/moment/moment/issues/1407
Add events unit tests
Add event edit controller unit tests