Added rspec tests for set_image_os_type