Set Providers correctly

This PR fixes the setProviders function that previously deleted the built in providers. 

It also adds the clear function to the Collection

Can we also add a tag please?