added sinon and basic test