Took error into account on superagent tests
Merge pull request #9 from lmarkus/fix-superagent-tests

Took error into account on superagent tests
Merged upstream changes