Various tests in the Editor System to check if everything is garbage collected and fixes in getBestEditor