uses request instead of superagent in the tests