Add a memory leak test.