Clean up tests in spec/requests
Add testing of links and of some helper code