title: Passing querystring to api using supertest throwing error: ECONNREFUSED: Connection refused
body: <pre><code>describe("Test report api ", function() {
      it("should get the report for given date range", function(done) {
        this.timeout(100000);
        agent
          .get("rbac/aa/contentful/getReport")
          .query({ startDate: "1557759433000", endDate: "1558450633000" })
          .expect(200)
          .end(function(err, res) {
            console.log("err:", err);
            console.log("response:", res);
            done();
          });
      });
    });
  </code></pre>
  
  <p><strong>Error</strong></p>
  
  <pre><code>ECONNREFUSED: Connection refused
      at Test.assert (/Users/premkumarsrinivasan/Documents/repositories/GIS_lilly_us_hub/node_modules/supertest/lib/test.js:165:15)
      at Server.localAssert (/Users/premkumarsrinivasan/Documents/repositories/GIS_lilly_us_hub/node_modules/supertest/lib/test.js:131:12)
      at Object.onceWrapper (events.js:273:13)
      at Server.emit (events.js:182:13)
      at emitCloseNT (net.js:1618:8)
      at process._tickCallback (internal/process/next_tick.js:63:19)
  response: undefined
  </code></pre>