unit tests for calendar controller fixed