exists before copy file

update a test