Fix EZP-20978: ContentService unit tests

This PR resolves issue https://jira.ez.no/browse/EZP-20978.