Fixed a couple of bugs thumbnails_download_preview.
Fixed tests for download_preview.