test_cookers: Turn git_loader into a pytest fixture
It enables to remove some code duplication related to git loader creation when executing tests.