fixes ordering of plugins during copy
fixed tests
Merge pull request #1959 from digi604/fixes

fixes copy plugins for out of order plugin trees