add sinon and tests