Fix pkg_validations tests
Fix a regression in pkg_is_valid