Test links on layout, test application helper, and clean up static_pages test code