allow core.repository to be none
importer: don't die when core.repository is None
simplify importer tests