Test for ModuleGenerator