add testcase for ngx.redirect with 307