Fixed a memory leak in Unit Test.