Add unittest method "test_download_flat_image"

Currently, there is not a test method of download_flat_image.

Change-Id: I8ed68222b3ef195464901d8c6442cc397ffdb272