function TestNode.expand(G)local a=getfenv(G.callback)local t=setmetatable({},{__index=a})for G,a in pairs(G.environment)do t[G]=a end setfenv(G.callback,t)local d,T=xpcall(G.callback,debug.traceback)if not d then G.loadError=T end end local G={}G.__index=G

function TestNode:expand()
	local originalEnv = getfenv(self.callback)
	local callbackEnv = setmetatable({}, { __index = originalEnv })
	for key, value in pairs(self.environment) do
		callbackEnv[key] = value
	end
	setfenv(self.callback, callbackEnv)

	local success, result = xpcall(self.callback, debug.traceback)

	if not success then
		self.loadError = result
	end
end

local TestPlan = {}
TestPlan.__index = TestPlan
