Modified npm test & added fakexmlhttpreqest
Use fakexmlhttprequest as dep
Wrapping req.send in try/catch for error handling