adding tests
follows redirects
Merge pull request #2 from querry43/master

handles redirects, plus more tests