Make use of temp files in tests platform agnostic.