calendar partial fixing bugs

This just the a partial commit , the agenda is working for the functions : add, move , delete. There are some problems with the update. I create a test for the calendar but I marked as skipped because I could not mock the "Event " entity class.