small implement getCommit and more tests