Fix tests of ModuleLoader due TemplateProvider changes.