Fix unit tests for csp handler

This patch is changing the way in which manifest
and application objects are created.
All below tests now pass:
 - CSPHandlerTest.WGTCSP
 - CSPHandlerTest.WGTEmptyCSP
Merge pull request #2704 from aszafranek/CspHandlerTestFix

Fix unit tests for csp handler