for testing purposes, don't return Tempfile (and don't copy file) but return File directly.