i think this idea is great, you're correct that we should have these in closures. however, a better way to do this, rather than adding them in to each file it to wrap them implicitly when we build the test data. e.g. if you look at how we build the dev js for the dashboard each file is wrapped in `window.balancedSetupFunctions.push(function() {...});` we could do the same for tests. i really like this idea.