Possible memory leak in test