Mem leak fix test