Moved provider state setup code out of TestMethods into new ProviderStateManager class