use mktemp for temporary selftest files