Added tests and new logic for downloads to make sure the correct versions are selected, mostly fixing issues with priority being taken from feed