Adds tests

Adds tests for image downloading, verification and unpacking. We are holding off on `vm` resource tests as they will be probably split out in different resources.