Write temp rand_test() files to tmp dir.