Fixed asset copying function
Fixed test for copyAssets() function