charm/testing: do not rely on copy overwriting