     # Add the extra code path for the slave node
     args = ["-pa", ebin_path]
     post_start_funs = [
-      fn -> 
-        Application.ensure_all_started(:distillery) 
-        Application.ensure_all_started(app)
-      end]
+      {Application, :ensure_all_started, [:distillery]},
+      {Application, :ensure_all_started, [app]}
+    ]
     # Start the node
     {:ok, pid} = NodeManager.start_nolink([
       boot_timeout: 30_000, 

  setup do
    {:ok, pid} = NodeManager.start_nolink([
      boot_timeout: 30_000, 
      post_start_functions: [&start_apps/0],
      stdout: :standard_error
    ])
    on_exit fn -> 

      :ok = fun.(name)
    end
  end
end
