Use ScopedTempFile in unit test. am: 0779a151e5 am: 0a2f6ce9d2
am: 443daee6d6

Change-Id: I8b4ad73295759043936a232478a281ee7b61d17f