tests for redirect