BugId:98734 - Preparations for ads in head test (backport from dev)