use supertest (or superagent) like request. mikeal/request's api supertest under the hood.