Add unit tests for FileImporterHooks and two small Services
These are a few low hanging fruits: classes that are quite small, but
not so trivial that they should not have any tests.
I'm also removing some actually unused code. I discovered this while
working on these tests. Less code, hurray!