More efficient plugin copy for unit tests.