uses chai-sinon for unit tests