Use !this.xhr for testing in cleanup method
Merge pull request #248 from poohlty/cleanup-test

Use !this.xhr for testing in cleanup method
fix parseUri('localhost:80'), add ipv6 addresses