Error messages of copy() should include filenames

Hi,

I've improve error messages of `copy()` with tests. Can you review my changes please?