Add a test for downloading behavior

It's mocked since phantom chokes on hard redirects