Removal of empty event object unittest