Extracted the grouping by hour of the events from the controller to the Event model.
Test coverage at 100 per cent.