[loader] Ignore optional dependencies without a test