Improve the tests and add support for 'latest' link of each type