Modifying Tests to use ProviderRepository instead of ProviderContext