Refactor mint_doi to pass the id to the constructor. Updated the tests.