fixed advertisement testcase and related media_archive stuff