split test into ModuleTest and ScriptTest