Add test for regression introduced in c052e9c

When the result of `url.parse()` is passed to one of the convenience
methods like `request.get()`, then cross-protocol redirects will fail
later on.  See #1054.
Fix #1054
Merge pull request #1056 from nylen/fix-http-https-redirect

Fix redirects when passing url.parse(x) as URL to convenience method