Write unit test for case "Add a duplicate file where the original file
is deleted".