test for next redirect