Fix warning about using os.tempnam in test suite.

Change-Id: Ibd725071ccdd9af951034685880f35ac678feae2
Merge "Fix warning about using os.tempnam in test suite."