`test do` would make sense here, so you can remove the `mktemp do`.