added mocha chai and sinon in testing process