use supertest (or superagent) like request (request.get but use supertest under the hood)