Test regression around copying the same file to itself

[#81613240]