MDL-33774 Converting static cache to MUC in filter_activitynames

Static cache was breaking consequtive PHPunit tests after modifications made in MDL-33774