deleted event is now emited and tests written for it