- implemented sinon tests