Fix profile tests to clean up its tempdirs.

Change-Id: I363651046cf414e14f15affd834043aabd5427c0
Merge "Fix profile tests to clean up its tempdirs."