Add unit tests for _copy_image_to_gcs and _write_to_gcs