Allow copying of profiles and targets, and fix copying of test runs