make sure that files are shared correctly before each test and unshared again after the test