issue in latest version of mocha-sinon, testing fix