added mocha testing & elasticsearch