Outsource some methods in a FileTestUtil
Fix download file when file already existent (overwrite).
And add test for new version.