Fix the potential of memory leaks in our test suit, which
Xcode Analyzer pointed out.
Avoid code analyzer error.