ScriptExecutor tests refactoring

Modeled after ExecuteScriptCommandTests