Fix unit tests for check_for_package_version.