added sinon (spies and mocks) and a test that uses it