Updated tests to click links, removed test code duplication, and added helper for checking the title