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