fix AppScriptService unit tests