check image_id of latest image, fix upgrade & add test for upgrade, start with local variables, etc....
fix unittest