Fix EZP-21989 Increase code coverage for EzPublishCoreBundle event listeners

https://jira.ez.no/browse/EZP-21989