test memory leak