tasks: Add test to check for loader visit type and task name discrepancy
If there is, that will result in tasks not being scheduled when asked to. So now, this test will specifically catch such error. Some equivalent tests should be declared for all "tasks" modules in various swh packages.
This detected the current discrepancy for the TarballDirectoryLoader.