[CDE-340]: more unit tests for ResourceLoaderFactory