Finished sample tests from http://robdodson.me/blog/2012/05/28/mocking-requests-with-mocha-chai-and-sinon/