Delete unregister function, add unit test for getProvidersForPath.