Fix memory leak when running individual test suites