Fix unit tests for widget handler

This patch is changing the way in which manifest
and application objects are created.
All below tests now pass:
 - WidgetHandlerTest.ParseManifestWithAllOfOtherItemsAndOnePreferenceItem
 - WidgetHandlerTest.ParseManifestWithAllOfOtherItemsAndThreePreferenceItemsList
 - WidgetHandlerTest.ParseManifestWithOnlyNameAndVersion
 - WidgetHandlerTest.ParseManifestWithInvalidAuthorHrefValue
Merge pull request #2681 from aszafranek/WidgetHandlerTestFix

Fix unit tests for widget handler