added tests for redirect middleware
Merge pull request #1 from justquick/tests

added tests for redirect middleware