Build sinon for mocking in tests