testing if error gets fixed on changing parameter from id to name as @event is nil