Remove latestIdOrInitial and fix nextIdOrFail and commits cli test

Sloppy. Sorry.