I think this test is pretty much doing the right thing. I would just do 'var store = {};' or something instead of sticking 'config' on 'self'. Maybe one can even just do 'var config' -- I'm not entirely sure how JS scoping behaves when that happens.