add test for copyFiles