tests: Reuse loader.core.tests' helper function
I thought i had done it already but that was in another module.
This also contains another commit which adds the reference to the new directory loader in the readme.
Refs. swh/meta#4979 (closed)
Edited by Antoine R. Dumont