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

Use !this.xhr for testing in cleanup method