Make test_copy_assets() more robust.