resourceloader: Add test coverage for DerivativeResourceLoaderContext