add test case for getproxyforurl in windows and fix bugs of remote-img
Merge pull request #915 from richardcypher/tests

add test case for getproxyforurl in windows and fix bugs of remote-img