Fix exclude windows test on ensure_package

Update to fix ensure_resource as well