Add preparation for provider (bug 942361)

this might be easier with a Sinon spy over localStorage. Also, I don't think it would be terrible if the tests hit the real localStorage. You can just clear it in setUp