add failing redirect tests
add redirect support; tests pass
remove external calls in tests
Merge pull request #17 from simon-weber/fix-redirect-handling

Fix redirect handling