Fix the tests with removing paths.