Added unit tests in the EzPublishRestBundle

JIRA issue: https://jira.ez.no/browse/EZP-20860