DatasetManager tests fail some times if executed concurrently. This is because all tests access the same global dataset configuration. Also, running the tests leaves a "test" folder behind. This should be avoided by properly mocking paths, and using tmp_path.