Fixing issue where empyt end point is created in sinon server