Add test case for server redirecting twice.
Fix pool manager urlopen() redirect at most once issue.