rework to try to avoid issues in reloading tests
test reloading repositories