An already by Inge Wallin marked memory leak is fixed by removing the
choosen test entries from the source list after copying them into the
destination list. So at the end of the choosing process only unused
entries remaining in the source list which are deleted before reusing
the list.
Depends on D17180