ECMS-6191: Updated dialog and template of metadata activities are published on homepage AS

Fix description:
  - Fix problem with testcase