ScriptExecutor tests refactoring