fixed memory leak in test