Added unit tests for calendarController.js