Improved performance of deletion of tests and problems.