Fixes tests in ResourceFactoryProviderSpec