refactoring: moved assertProviderImpl to a new file