add tests for redirects
v3.1.0