You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: actionlog_functions_test.go
    path of file: ./repos/corteza/server/tests/workflows
    
    the code of the file until where you have to start completion: package workflows

import (
	"context"
	"testing"

	automationService "github.com/cortezaproject/corteza/server/automation/service"
	"github.com/cortezaproject/corteza/server/automation/types"
	"github.com/cortezaproject/corteza/server/pkg/actionlog"
	"github.com/cortezaproject/corteza/server/pkg/logger"
	"github.com/cortezaproject/corteza/server/system/automation"
	"gith
    
func Test_actionlog_functions(t *testing.T) {
	var (
		ctx = bypassRBAC(context.Background())
		req = require.New(t)
	)

	req.NoError(defStore.TruncateActionlogs(ctx))

	//// register action log with storage backend
	automation.ActionlogHandler(
		automationService.Registry(),
		actionlog.NewService(defStore, logger.Default(), logger.Default(), actionlog.NewPolicyAll()),
	)

	loadNewScenario(ctx, t)

	var (
		aux = struct {
			Actions actionlog.ActionSet
		}{}
	)

	vars, _ := mustExecWorkflow(ctx, t, "logger", types.WorkflowExecParams{})
	req.NoError(vars.Decode(&aux))

	// Expecting both, invoker & runner to be same as invoker
	req.Len(aux.Actions, 2)

	//undo action log registration
	automation.ActionlogHandler(
		automationService.Registry(),
		automationService.DefaultActionlog,
	)

}