tests for the 3 redirect cases #3293