tests: check image variants
Since images can have variants as well, check that the specified variants are defined OS variants. This mimics the same checks done for media and trees.
No issues were found by this new test, mostly because no image has variants at the moment.