Using generators to yield suitable providers
Implemented missing test