Update a path in a test file.