Fixed typos
Added tests for redirects