EZP-21771: Add integration test

Integration test for issue: [EZP-21771](http://jira.ez.no/browse/EZP-21771)