Add tests for no redirect loop