An attempt to deal with PermGen space errors on core tests.