Use Data.copyFile() and improve assertion message.