Added a test to ensure that provided loaders are used.
Modified load to allow passing classes or instances.