add some tests for ProviderRepository