Don't use the DOM in the store tests

Using the DOM in the store test was breaking the build on Travis due to Runloop complaints.
There really isn't a reason why the DOM use is needed, so I refactored
the test instead of messing with the Runloop.