Refactor and clean up LinkedFileTests to not be dependent on previous run GitOrigin-RevId: 199a4ab6b463b2248244a067c765078816da182b