mocks elasticsearch with sinon