Remove more test code for resolving the leak problem.