I'm not sure it will because StoreFactory does not rely on GLOBAL state, it gets the information from the `Settings` object, so can be that setting $smwgDefaultStore will not result in the expected behaviour.

Haven't tested it ...