fixes ordering of plugins during copy
fixed tests