added some tests for calendar controller